import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  /*  mode: 'history',*/
  routes: [
    {
      path: '/',
      redirect: '/ArticleInformationManagement'
    },
    {
      path: '/',
      component: resolve => require(['../components/common/Home.vue'], resolve),
      meta: {title: '主体'},
      children: [
        {
          path: '/ArticleInformationManagement',
          component: resolve => require(['../components/page/ArticleInformationManagement.vue'], resolve),
          meta: {title: '文章资讯管理'}
        },
        {
          path: '/ConsultantIntroductionManagement',
          component: resolve => require(['../components/page/ConsultantIntroductionManagement.vue'], resolve),
          meta: {title: '顾问介绍管理'}
        },
        {
          path: '/ContactInformationManagement',
          component: resolve => require(['../components/page/ContactInformationManagement.vue'], resolve),
          meta: {title: '联系方式管理'}
        },
        {
          path: '/ContributionEvaluationManagement',
          component: resolve => require(['../components/page/ContributionEvaluationManagement.vue'], resolve),
          meta: {title: '投稿评估管理'}
        },
        {
          path: '/ContributionGuideManagement',
          component: resolve => require(['../components/page/ContributionGuideManagement.vue'], resolve),
          meta: {title: '投稿指南管理'}
        },
        {
          path: '/EditingActivityManagement',
          component: resolve => require(['../components/page/EditingActivityManagement.vue'], resolve),
          meta: {title: '编辑活动管理'}
        },
        {
          path: '/ExcellentJournalManagement',
          component: resolve => require(['../components/page/ExcellentJournalManagement.vue'], resolve),
          meta: {title: '优秀期刊管理'}
        },
        {
          path: '/HealthJournalManagement',
          component: resolve => require(['../components/page/HealthJournalManagement.vue'], resolve),
          meta: {title: '卫生期刊管理'}
        },
        {
          path: '/IndustryDynamicManagement',
          component: resolve => require(['../components/page/IndustryDynamicManagement.vue'], resolve),
          meta: {title: '行业动态管理'}
        },
        {
          path: '/JobDynamicManagement',
          component: resolve => require(['../components/page/JobDynamicManagement.vue'], resolve),
          meta: {title: '工作动态管理'}
        },
        {
          path: '/JournalFranchiseManagement',
          component: resolve => require(['../components/page/JournalFranchiseManagement.vue'], resolve),
          meta: {title: '期刊加盟管理'}
        },
        {
          path: '/ManuscriptManagement',
          component: resolve => require(['../components/page/ManuscriptManagement.vue'], resolve),
          meta: {title: '稿件管理'}
        },
        {
          path: '/NoticeManagement',
          component: resolve => require(['../components/page/NoticeManagement.vue'], resolve),
          meta: {title: '公告通知管理'}
        },
        {
          path: '/OnlineCourseManagement',
          component: resolve => require(['../components/page/OnlineCourseManagement.vue'], resolve),
          meta: {title: '线上课程管理'}
        },
        {
          path: '/OrganizationalStructureManagement',
          component: resolve => require(['../components/page/OrganizationalStructureManagement.vue'], resolve),
          meta: {title: '组织结构管理'}
        },
        {
          path: '/OrganizationIntroductionManagement',
          component: resolve => require(['../components/page/OrganizationIntroductionManagement.vue'], resolve),
          meta: {title: '机构介绍管理'}
        },
        {
          path: '/RoleAuthorityManagement',
          component: resolve => require(['../components/page/RoleAuthorityManagement.vue'], resolve),
          meta: {title: '角色权限管理'}
        },
        {
          path: '/SubmissionProcessManagement',
          component: resolve => require(['../components/page/SubmissionProcessManagement.vue'], resolve),
          meta: {title: '投稿流程管理'}
        },
        {
          path: '/UserManagement',
          component: resolve => require(['../components/page/UserManagement.vue'], resolve),
          meta: {title: '用户管理'}
        },
        {
          path: '/DictionaryManaged',
          component: resolve => require(['../components/page/DictionaryManaged.vue'], resolve),
          meta: {title: '字典管理'}
        },
        {
          path: '/JournalProfessional',
          component: resolve => require(['../components/page/JournalProfessional.vue'], resolve),
          meta: {title: '期刊专业管理'}
        },
        {
          path: '/ByManagement',
          component: resolve => require(['../components/page/ByManagement.vue'], resolve),
          meta: {title: '轮播管理'}
        },
        {
          path: '/DocumentFormatCheck',
          component: resolve => require(['../components/page/DocumentFormatCheck.vue'], resolve),
          meta: {title: '文献格式校验'}
        },
        {
          path: '/ProofreadForTypos',
          component: resolve => require(['../components/page/ProofreadForTypos.vue'], resolve),
          meta: {title: '错别字校对'}
        },
        {
          path: '/ManuscriptInnovationIndex',
          component: resolve => require(['../components/page/ManuscriptInnovationIndex.vue'], resolve),
          meta: {title: '稿件创新指数'}
        },
        {
          path: '/policiesRegulations',
          component: resolve => require(['../components/page/policiesRegulations.vue'], resolve),
          meta: {title: '政策法规'}
        },
        {
          path: '/SpecialPlanning',
          component: resolve => require(['../components/page/SpecialPlanning.vue'], resolve),
          meta: {title: '特别策划'}
        },
        {
          path: '/bayWindow',
          component: resolve => require(['../components/page/bayWindow.vue'], resolve),
          meta: {title: '公告通知'}
        },
        {
          path: '/legal',
          component: resolve => require(['../components/page/legal.vue'], resolve),
          meta: {title: '法律援助'}
        },
      ]
    },
    {
      path: '/login',
      component: resolve => require(['../components/page/Login.vue'], resolve),
      meta: {title: '登录'}
    },
  ]
})
